package com.wnxy.sddfp.gateway;

import com.alibaba.cloud.nacos.ribbon.NacosRule;
import com.netflix.loadbalancer.IRule;
import com.wnxy.sddfp.common.util.JwtTemplate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class);
    }

    @Bean
    public IRule loadBalanceRule(){
        return new NacosRule();
    }

    @Bean
    public JwtTemplate jwtTemplate(){
        return new JwtTemplate();
    }
}
